package StudentManagement;

public class TestStudent1 {
    public static void main(String[] args) {
        // 使用带参构造器创建对象（传入学号、姓名、专业）
        Student stu1 = new Student("2025001", "张三", "计算机科学");
        Student stu2 = new Student("2025002", "李四", "软件工程");

        // 输出信息（无需额外调用setter，构造器已初始化属性）
        System.out.println("学生1：" + stu1.getStudentId() + " " + stu1.getName());
        System.out.println("学生2：" + stu2.getStudentId() + " " + stu2.getName());
    }
}
